package com.ruoyi.faq.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户提问记录对象 faq_user_question
 * 
 * @author ruoyi
 * @date 2025-06-13
 */
public class FaqUserQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户问题 */
    @Excel(name = "用户问题")
    private String question;

    /** 匹配到的FAQ ID */
    @Excel(name = "匹配到的FAQ ID")
    private Long matchedFaqId;

    /** 相似度 */
    @Excel(name = "相似度")
    private BigDecimal similarity;

    /** 是否有帮助（0否 1是） */
    @Excel(name = "是否有帮助", readConverterExp = "0=否,1=是")
    private String isHelpful;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }
    public void setMatchedFaqId(Long matchedFaqId) 
    {
        this.matchedFaqId = matchedFaqId;
    }

    public Long getMatchedFaqId() 
    {
        return matchedFaqId;
    }
    public void setSimilarity(BigDecimal similarity) 
    {
        this.similarity = similarity;
    }

    public BigDecimal getSimilarity() 
    {
        return similarity;
    }
    public void setIsHelpful(String isHelpful) 
    {
        this.isHelpful = isHelpful;
    }

    public String getIsHelpful() 
    {
        return isHelpful;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("question", getQuestion())
            .append("matchedFaqId", getMatchedFaqId())
            .append("similarity", getSimilarity())
            .append("isHelpful", getIsHelpful())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
